# Packages and runs the latest SLB library
cmake_minimum_required(VERSION 2.6)

file(GLOB slb_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/src/*.cpp")
file(GLOB slb_LUA_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/deps/lua/src/*.c")

include_directories(
  "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/include/"
  "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/deps/lua/src/"
)
add_library(slb STATIC ${slb_SOURCES} ${slb_LUA_SOURCES})

# Set properties as per FindModules
set(slb_FOUND
  TRUE
  CACHE INTERNAL "" FORCE
)

set(slb_INCLUDE_DIRS
  "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/include/"
  "${CMAKE_CURRENT_SOURCE_DIR}/slb-source/deps/lua/src/"
  CACHE INTERNAL "" FORCE
)

set(slb_LIBRARIES
  slb
  CACHE INTERNAL "" FORCE
)

set(slb_DEFINITIONS
  ""
  CACHE INTERNAL "" FORCE                                                    
)
